<template>
  <div>
    this is an news
    <hr>
    {{$store.state.num}}
    <hr>
    <span>这是通过getter计算得来的数据</span>
    {{$store.getters.dbnum}}
    {{$store.getters.three}}
    {{$store.getters.sum}}
    <hr>
    {{dbnum}}
    {{three}}
    {{sum}}
    <hr>
    {{two}}
    {{thrid}}
    {{he}}
  </div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
  mounted () {
    console.log(this)
  },
  computed: {
    ...mapGetters(['dbnum', 'three', 'sum']),
    ...mapGetters({
      two: 'dbnum',
      thrid: 'three',
      he: 'sum'
    })
  }
}
</script>
